package foodmaterial.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import foodmaterial.action.valid.PaginationNoValid;
import foodmaterial.action.valid.PaginationSizeValid;
import foodmaterial.utils.Constants;

import java.util.Date;
import java.util.List;

/**
 * 食材
 */
public class FoodMaterialDto  {

    private Long id ;
    private Long typeId;// '参照食材分类id',
    private String typeName ;
    private String name; // '名称',
    private String specs;// '规格',
    private String brand ; //'品牌',
    private String unitName; //'计量单位',
    private String pic;// '食材图片路径，要限制上传大小',
    private Double salePrice; //'食材价格（出货价格）',
    private Double buyPrice ;
    private Boolean stop ; //停用标志 true :停用 false ：在用
    private Boolean supplier ; //标签打印区分供应商
    private Boolean originalProcess ;
    private Double originalProcessRate ;
    private Long originalType ;
    private Boolean processPurchase ;
    private Boolean condiment ; //订单查询的时候使用，主要是确定显示调料
    @JsonFormat(pattern= Constants.DEFAULT_DATE_FORMAT,timezone="GMT+8")
    private Date supplyDate ;//为查询供应的食材使用
    private Long customerId ;//为查询供应的食材使用
    private List<Long> foodMaterialIds ;//为净菜加工查询毛菜
    private String backAddress ;
    @PaginationNoValid(ignoreEmpty = false)
    private Integer pageNo ;
    @PaginationSizeValid(ignoreEmpty = false)
    private Integer pageSize ;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSpecs() {
        return specs;
    }

    public void setSpecs(String specs) {
        this.specs = specs;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Double getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(Double salePrice) {
        this.salePrice = salePrice;
    }

    public Double getBuyPrice() {
        return buyPrice;
    }

    public void setBuyPrice(Double buyPrice) {
        this.buyPrice = buyPrice;
    }

    public Boolean getStop() {
        return stop;
    }

    public void setStop(Boolean stop) {
        this.stop = stop;
    }

    public Boolean getSupplier() {
        return supplier;
    }

    public void setSupplier(Boolean supplier) {
        this.supplier = supplier;
    }

    public Boolean getOriginalProcess() {
        return originalProcess;
    }

    public void setOriginalProcess(Boolean originalProcess) {
        this.originalProcess = originalProcess;
    }

    public Double getOriginalProcessRate() {
        return originalProcessRate;
    }

    public void setOriginalProcessRate(Double originalProcessRate) {
        this.originalProcessRate = originalProcessRate;
    }

    public Long getOriginalType() {
        return originalType;
    }

    public void setOriginalType(Long originalType) {
        this.originalType = originalType;
    }

    public Boolean getProcessPurchase() {
        return processPurchase;
    }

    public void setProcessPurchase(Boolean processPurchase) {
        this.processPurchase = processPurchase;
    }

    public Boolean getCondiment() {
        return condiment;
    }

    public void setCondiment(Boolean condiment) {
        this.condiment = condiment;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Date getSupplyDate() {
        return supplyDate;
    }

    public void setSupplyDate(Date supplyDate) {
        this.supplyDate = supplyDate;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public List<Long> getFoodMaterialIds() {
        return foodMaterialIds;
    }

    public void setFoodMaterialIds(List<Long> foodMaterialIds) {
        this.foodMaterialIds = foodMaterialIds;
    }

    public String getBackAddress() {
        return backAddress;
    }

    public void setBackAddress(String backAddress) {
        this.backAddress = backAddress;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

}
